fix(autopilot): stuck 検知が EPIC Decomposed を誤 Block する (#856)#860
Merged
Conversation
decompose 完了済み EPIC の resting 状態 (AI Status=EPIC Decomposed) は子の実装待ちで run を 持たなくて当然。isStuckCandidate がこれを一律 stuck 扱いし誤 Blocked にしていた (#856)。 Self-Reviewing と同じく除外リストに追加。Decomposing/Implementing 等の実行中 AI Status は 引き続き stuck 検知の対象に残す。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Author
🤖 autopilot status
Linked issue #856. Maintained by autopilot (single writer); do not edit. |
Author
🤖 autopilot 敵対的レビュー完了差分( 確認した観点
受け入れ条件
|
takaokouji
approved these changes
Jul 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
stuck 検知(#816
isStuckCandidate)が、decompose 完了済みの EPIC(
Status=In Progress/AI Status=EPIC Decomposed)を誤って stuck 扱いしBlocked にしていた不具合を修正する。
EPIC Decomposedは decompose が正常終了した EPIC の resting 状態(子の実装待ち)で、実行中の run を持たなくて当然。
Self-Reviewingと同様に「run が無くて当然の状態」としてstuck 検知から除外する。
Changes Made
tools/autopilot/src/phases.js:isStuckCandidateの除外 AI Status をSTUCK_EXEMPT_AI_STATUSESSet にまとめ、EPIC Decomposedを追加。Decomposing/Implementing等の実行中 AI Status は引き続き stuck 検知の対象。tools/autopilot/test/phases.test.js:EPIC Decomposedが false になるケースを追加。Test Coverage
cd tools/autopilot && node --test→ 140 tests pass(RED → GREEN 確認済み)。isStuckCandidate({status:'In Progress', aiStatus:'EPIC Decomposed'})が false。Decomposing/Implementingは引き続き true(回帰なし)。Related Issues
Closes #856